#ifndef ALL_INIT_H
#define ALL_INIT_H

#include "gd32f10x_libopt.h"

#define GROUP_MOTO TIMER2

#define GROUP1_MOTO_PIN_TYPE GPIOA
#define GROUP1_MOTO_CHANNEL1 TIMER_CH_0
#define GROUP1_MOTO_CHANNEL1_PIN GPIO_PIN_6
#define GROUP1_MOTO_CHANNEL2 TIMER_CH_1
#define GROUP1_MOTO_CHANNEL2_PIN GPIO_PIN_7

#define GROUP2_MOTO_PIN_TYPE GPIOB
#define GROUP2_MOTO_CHANNEL1 TIMER_CH_2
#define GROUP2_MOTO_CHANNEL1_PIN GPIO_PIN_0
#define GROUP2_MOTO_CHANNEL2 TIMER_CH_3
#define GROUP2_MOTO_CHANNEL2_PIN GPIO_PIN_1

#define BULETOOCH_TYPE USART1
#define BULETOOCH_PIN_TYPE GPIOA
#define BULETOOCH_TX GPIO_PIN_2
#define BULETOOCH_RX GPIO_PIN_3

/*function void*/
void group1_moto_init(void);
// void group2_moto_init(void);
void all_init(void);

#endif
